/*
 * @Author: zwf 240970521@qq.com
 * @Date: 2023-07-15 17:24:23
 * @LastEditors: zwf 240970521@qq.com
 * @LastEditTime: 2023-08-10 01:09:52
 * @FilePath: /esp32_motor/motor/inc/AS5600.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef AS5600_H
#define AS5600_H

#include "esp_types.h"
#include "i2c.h"
#include "IQmathLib.h"

typedef struct AS5600Dev
{
    void *priv;
    _iq24 (*getAngle)(struct AS5600Dev *dev);
} AS5600Dev;

void AS5600_delete(AS5600Dev *dev);
int  AS5600_create(int busNum, int sda, int scl, AS5600Dev **dev);

#endif
